package com.ruoyi.tuihuo.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 购货退货对象 tuihuo
 *
 * @author ruoyi
 * @date 2023-05-23
 */
@ApiModel(value = "购货退货实体类")
public class Tuihuo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 单据编号 */
    @ApiModelProperty("单据编号")
    @Excel(name = "单据编号")
    private String tuihuoDanhao;

    /** 退货日期 */
    @ApiModelProperty("退货日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "退货日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date tuihuoDate;

    /** 经手人 */
    @ApiModelProperty("经手人")
    @Excel(name = "经手人")
    private String tuihuoJingshouren;

    /** 仓库 */
    @ApiModelProperty("仓库")
    @Excel(name = "仓库")
    private String tuihuoCangku;

    /** 商品编号 */
    @ApiModelProperty("商品编号")
    @Excel(name = "商品编号")
    private String goodId;

    /** 商品名称 */
    @ApiModelProperty("商品名称")
    @Excel(name = "商品名称")
    private String goodName;

    /** 商品规格 */
    @ApiModelProperty("商品规格")
    @Excel(name = "商品规格")
    private String goodGuige;

    /** 数量 */
    @ApiModelProperty("数量")
    @Excel(name = "数量")
    private BigDecimal shuliang;

    /** 单位 */
    @ApiModelProperty("单位")
    @Excel(name = "单位")
    private String danwei;

    /** 单价 */
    @ApiModelProperty("单价")
    @Excel(name = "单价")
    private BigDecimal danjia;

    /** 付款方式 （0微信支付 1支付宝支付 2现金支付 3银行卡转账 4其他支付方式 5未付） */
    @ApiModelProperty("付款方式(0微信支付 1支付宝支付 2现金支付 3银行卡转账 4其他支付方式 5未付)")
    @Excel(name = "付款方式 ", readConverterExp = "0=微信支付,1=支付宝支付,2=现金支付,3=银行卡转账,4=其他支付方式,5=未付")
    private String paymentMethod;

    /** 总金额 */
    @ApiModelProperty("总金额")
    @Excel(name = "总金额")
    private BigDecimal jiner;

    /** 备注 */
    @ApiModelProperty("备注")
    @Excel(name = "备注")
    private String beizhu;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setTuihuoDanhao(String tuihuoDanhao)
    {
        this.tuihuoDanhao = tuihuoDanhao;
    }

    public String getTuihuoDanhao()
    {
        return tuihuoDanhao;
    }
    public void setTuihuoDate(Date tuihuoDate)
    {
        this.tuihuoDate = tuihuoDate;
    }

    public Date getTuihuoDate()
    {
        return tuihuoDate;
    }
    public void setTuihuoJingshouren(String tuihuoJingshouren)
    {
        this.tuihuoJingshouren = tuihuoJingshouren;
    }

    public String getTuihuoJingshouren()
    {
        return tuihuoJingshouren;
    }
    public void setTuihuoCangku(String tuihuoCangku)
    {
        this.tuihuoCangku = tuihuoCangku;
    }

    public String getTuihuoCangku()
    {
        return tuihuoCangku;
    }
    public void setGoodId(String goodId)
    {
        this.goodId = goodId;
    }

    public String getGoodId()
    {
        return goodId;
    }
    public void setGoodName(String goodName)
    {
        this.goodName = goodName;
    }

    public String getGoodName()
    {
        return goodName;
    }
    public void setGoodGuige(String goodGuige)
    {
        this.goodGuige = goodGuige;
    }

    public String getGoodGuige()
    {
        return goodGuige;
    }
    public void setShuliang(BigDecimal shuliang)
    {
        this.shuliang = shuliang;
    }

    public BigDecimal getShuliang()
    {
        return shuliang;
    }
    public void setDanwei(String danwei)
    {
        this.danwei = danwei;
    }

    public String getDanwei()
    {
        return danwei;
    }
    public void setDanjia(BigDecimal danjia)
    {
        this.danjia = danjia;
    }

    public BigDecimal getDanjia()
    {
        return danjia;
    }
    public void setPaymentMethod(String paymentMethod)
    {
        this.paymentMethod = paymentMethod;
    }

    public String getPaymentMethod()
    {
        return paymentMethod;
    }
    public void setJiner(BigDecimal jiner)
    {
        this.jiner = jiner;
    }

    public BigDecimal getJiner()
    {
        return jiner;
    }
    public void setBeizhu(String beizhu)
    {
        this.beizhu = beizhu;
    }

    public String getBeizhu()
    {
        return beizhu;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("tuihuoDanhao", getTuihuoDanhao())
                .append("tuihuoDate", getTuihuoDate())
                .append("tuihuoJingshouren", getTuihuoJingshouren())
                .append("tuihuoCangku", getTuihuoCangku())
                .append("goodId", getGoodId())
                .append("goodName", getGoodName())
                .append("goodGuige", getGoodGuige())
                .append("shuliang", getShuliang())
                .append("danwei", getDanwei())
                .append("danjia", getDanjia())
                .append("paymentMethod", getPaymentMethod())
                .append("jiner", getJiner())
                .append("beizhu", getBeizhu())
                .toString();
    }
}
